<?php
class AvlNode extends BinaryNode
{
    /**
     * @var int $height
     */
    public $height=0;
    /**
     * @return self
     */
    static public function create($item)
    {
        $new=new self();
        $new->data=$item;
        return $new;
    }
    public function __toString()
    {
        return $this->data."(".$this->height.")";
    }
}
